reactive: true });
this.actor._delegate = this;
+ this._sessionStyle = null;
+
this.statusArea = {};
this.menuManager = new PopupMenu.PopupMenuManager(this);
this._updateBox(panel.left, this._leftBox);
this._updateBox(panel.center, this._centerBox);
this._updateBox(panel.right, this._rightBox);
+
+ if (this._sessionStyle)
+ this._removeStyleClassName(this._sessionStyle);
+
+ this._sessionStyle = Main.sessionMode.panelStyle;
+ if (this._sessionStyle)
+ this._addStyleClassName(this._sessionStyle);
},
_initBox: function(elements, box) {
this.statusArea[role] = indicator;
this._addToPanelBox(role, indicator, position, boxContainer);
return indicator;
+ },
+
+ _addStyleClassName: function(className) {
+ this.actor.add_style_class_name(className);
+ this._rightCorner.actor.add_style_class_name(className);
+ this._leftCorner.actor.add_style_class_name(className);
+ },
+
+ _removeStyleClassName: function(className) {
+ this.actor.remove_style_class_name(className);
+ this._rightCorner.actor.remove_style_class_name(className);
+ this._leftCorner.actor.remove_style_class_name(className);
}
});
center: [],
right: []
},
+ panelStyle: null
},
'gdm': {
center: ['dateMenu'],
right: ['a11y', 'display', 'keyboard',
'volume', 'battery', 'powerMenu']
- }
+ },
+ panelStyle: 'login-screen'
},
'lock-screen': {
center: [],
right: ['lockScreen']
},
+ panelStyle: 'lock-screen'
},
'unlock-dialog': {
center: [],
right: ['a11y', 'keyboard', 'lockScreen']
},
+ panelStyle: 'unlock-screen'
},
'initial-setup': {